fixes for ramdev executable.