cleaned up release code