filename now a global var

removed filename from callback vars