added apt rept stuff