adding some debugging and switching to -like