make all methods pkg private; add sync to clear/setManager; make some locals final