getting rid of amdefine (for real)