#50: fixed some param passing
#50:fixed the constructor constructor to closure the manager