working on modifications to improve iOS7 compatibility