cleanup. fix for linux