added status checking on open