bug fixes, renamed target for api other than GL