added inventory and drug applications (not finished yet)