added some functionality to work on linux, DISCLAIMER: linux still in beta