in reply to error stating flock requires more args

If you are going to use all-lowercase names for your functions (or even all-uppercase names), then you need to call them like &this(...). See (tye)Re: A question of style for more info.

        - tye (but my friends call me "Tye")