logic stuff
apis and use of variables, library ids, better logic listening, etc