tested and linux compatibility

also starting to shape up