fixing way of requiring dependencies