adding apto header, changing global variabls to reflect apto