moved 'before' statement outside namespace :deploy