application almost works