fixed orientation code, linked frameworks