added functions for applying reasonable constaints to package dependencies