declaring dependencies; cleanup