use bourne compatible function definitions