some fixes to get server to run, still does not work with bin file