Linux compatibility

harp working version 1