made progress in apsm.h
idk what this is