good practice with inject and blocks