fixed bug in :filename option