ap2k: initial commit