fixes to get trashproblem to compile and run