made more cross-platformable
!here was not working, fixed