added os for functions