created&implemented dependencies layer
invalid scenario solved