capabilites and error fix

added capabilities for manager and fixed error caused by wrong parameter in the function