fixed requirements, some debugging prints