small changes, added bootstrap method, it will be used to start apmex