added config to weapon component constructor