fixed some library execute bugs to allow components (like commands) to work from different places, small refactor to the init flow