Updated startup

automatic api loading+some other changes