fix for build plugin manager issue, got rid of some warnings